import request from '@/utils/request'


export function getPageData(params) {
  return request({
    url: '/api/pharmacy/list',
    method: 'post',
    data: params
  })
}

export function addData(params) {
  return request({
    url: '/api/pharmacy/add',
    method: 'post',
    data: params
  })
}

export function updateData(params) {
  return request({
    url: '/api/pharmacy/update',
    method: 'post',
    data: params
  })
}

export function deleteData(id) {
  return request({
    url: '/api/pharmacy/'+id,
    method: 'delete'
  })
}
